<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:83:"F:\phpstudy_pro\WWW\www.jiefanggongyuan.com\public/../wcapps/admin\view\ad\add.html";i:1631668114;}*/ ?>
<!DOCTYPE html>
<html>    
<head>        
	<meta charset="utf-8">        
	<title>广告添加</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">        
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">        
	<meta name="apple-mobile-web-app-status-bar-style" content="black">        
	<meta name="apple-mobile-web-app-capable" content="yes">        
	<meta name="format-detection" content="telephone=no">        
	<link href="/static/skin/nei.css" type="text/css" rel="stylesheet">          
	<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.config.js"></script>		
	<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.all.min.js"></script>    
</head>
<body onLoad="initPage()">
	<div id="LoadingBar">
		<img src="/static/images/load.gif" /></div>
		<div class="d_contaiter">		
			<form class="layui-form layui-form-pane" action="<?php echo url('admin/ad/add'); ?>" method="post" enctype="multipart/form-data">  			
			<div class="layui-form-item">    
				<label class="layui-form-label">选择类别</label>    
				<div class="layui-input-block">      
					<select name="cid" id="cid" lay-filter="cid" lay-verify="required">        
						<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$lmdata): $mod = ($i % 2 );++$i;?>        
						<option value="<?php echo $lmdata['id']; ?>"><?php echo $lmdata['name']; ?></option>        
						<?php endforeach; endif; else: echo "" ;endif; ?>      
					</select>    
				</div>  
			</div>  
			
			<div class="layui-form-item">    
				<label class="layui-form-label">标题1</label>    
				<div class="layui-input-block">      
					<input type="text" name="name"  value="" lay-verify="required" autocomplete="off" placeholder="标题" class="layui-input" maxlength="30">    
				</div>  
			</div> 
			<div class="layui-form-item">    
				<label class="layui-form-label">标题2</label>    
				<div class="layui-input-block">      
					<input type="text" name="m_url"  value="" lay-verify="required" autocomplete="off" placeholder="" class="layui-input">    
				</div>  
			</div>       
			<div class="layui-form-item">    
				<label class="layui-form-label">排序</label>    
				<div class="layui-input-block">      
					<input type="number" name="vieworder"  value="" lay-verify="required" autocomplete="off" placeholder="排序" class="layui-input" maxlength="30">    
				</div>  
			</div>   
			<div class="layui-form-item">    
				<label class="layui-form-label">发 布 人</label>    
				<div class="layui-input-block">      
					<input type="text" name="addname"  value="<?php echo session('UserName'); ?>" lay-verify="required" autocomplete="off" placeholder="请输入分类排序" class="layui-input" maxlength="30">    
				</div>  
			</div>     
			<div class="layui-form-item">    
				<label class="layui-form-label">缩略图</label>     
				<div class="layui-input-block">     
					<div class="file-box">     
						<i class="layui-icon">&#xe61f;</i>     
						<input class="file-btn" type="button" value="&nbsp;选择图片">      
						<input class="file-txt" type="text" name="imgtext" id="imgtext">      
						<input class="file-file" type="file" name="imgpath" size="28" onchange="document.getElementById('imgtext').value=this.value" />      
					</div>     
				</div>  
			</div>  
			<div class="layui-form-item">    
				<label class="layui-form-label">广告链接</label>    
				<div class="layui-input-block">      
					<input type="text" name="url"  value="" lay-verify="required" autocomplete="off" placeholder="" class="layui-input">    
				</div>  
			</div>  
			
	<div class="layui-form-item">    
		<button class="layui-btn layui-btn-green" type="submit">提交保存</button>  
	</div>
</form>	
</div>   
<script src="/static/js/jquery-1.10.2.min.js" type="application/javascript"></script>
<script src="/static/js/neijqtab.js" type="application/javascript"></script>
<script src="/static/js/xlayui/layui.js" charset="utf-8"></script>
<script>function initPage(){   	
var objLoading = document.getElementById("LoadingBar");   	
if (objLoading != null){   		
objLoading.style.display = "none";   		
$(".d_contaiter").css("display","block");	
}   
}  
</script>
<script>
layui.use(['form', 'layedit', 'laydate'], function(){ 
 var form = layui.form(),layer = layui.layer,layedit = layui.layedit,laydate = layui.laydate; 
});
</script>
</body>
</html>